package com.distribute.application.api;

import java.util.Objects;

import javax.servlet.http.HttpSession;

import com.distribute.framework.core.web.helper.Utils;
import com.distribute.framework.model.*;

public class BaseApiController {
	
	SrvOauth srvOauth;
	SrvApiClient srvApiClient;
	SrvApi srvApi;
	
	Long client;
	Long api;
	
	Double lat = null;//经度
	Double lng = null;//纬度

	Long uid = null;
	
	public Long getUid() {
		return uid;
	}
	public void setUid(Long uid) {
		this.uid = uid;
	}
	
	public SrvOauth getSrvOauth() {
		return srvOauth;
	}
	public void setSrvOauth(SrvOauth srvOauth) {
		this.srvOauth = srvOauth;
	}
	public SrvApiClient getSrvApiClient() {
		return srvApiClient;
	}
	public void setSrvApiClient(SrvApiClient srvApiClient) {
		this.srvApiClient = srvApiClient;
	}
	public SrvApi getSrvApi() {
		return srvApi;
	}
	public void setSrvApi(SrvApi srvApi) {
		this.srvApi = srvApi;
	}
	public Long getClient() {
		return client;
	}
	public void setClient(Long client) {
		this.client = client;
	}
	public Long getApi() {
		return api;
	}
	public void setApi(Long api) {
		this.api = api;
	}
	
	public Double getLat() {
		return lat;
	}

	public void setLat(Double lat) {
		this.lat = lat;
	}

	public Double getLng() {
		return lng;
	}

	public void setLng(Double lng) {
		this.lng = lng;
	}
    protected HttpSession getSession() {
        return Utils.getHttpSession();
    }
}